package com.finance.system.user.entity;

import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * jwt中存放的用户信息
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class JwtPayload {
    @NotNull
    private Long userId;

    @NotNull
    private String userName;

    @NotNull
    private String phone;

    @NotNull
    private String email;

    private String jti;

    private Date exp;
}
